<% content_for :header do %>
<div id="nav">
  <ul>
    <li><a href="/intro">活动介绍</a></li>
    <li><a href="/join" class="current">如何参与</a></li>
    <li><a href="/news">最新动态</a></li>
    <li><a href="/contact">联系我们</a></li>
  </ul>
</div>
<div id="pagetitle">
  <h1>学 校 信 息</h1>
</div>
<% end %>

<div id="content">
  <div id="innercontent">
    <ul id="tabnav" class="school-nav">
  		<li class="current" id="base-li"><a href="javascript:show_form('base')" title="学校基本信息">学校基本信息</a></li>
  		<li id="traffic-li"><a href="javascript:show_form('traffic')" title="交通指南">交通指南</a></li>
  		<li id="require-li"><a href="javascript:show_form('require')" title="学校需求">学校需求调查</a></li>
  		<li id="finder-li"><a href="javascript:show_form('finder')" title="信息收集人">信息收集人</a></li>
  	</ul>
  	<div id="base-form" class="form-tb">
  	 <table border="0" cellspacing="5" cellpadding="5" class="list-tb">
  	   <tr class="list-line-odd">
  	     <td width="120">学校名称：</td>
  	     <td width="250"><%= h @school.title %></td>
  	   </tr>
  	   <tr>
  	     <td>所在地区：</td>
  	     <td></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>学校地址：</td>
  	     <td><%= h @school.address %></td>
  	   </tr>
  	   <tr>
  	     <td>邮政编码：</td>
  	     <td><%= h @school.zipcode %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>校长姓名：</td>
  	     <td><%= h @school.schoolmaster %></td>
  	   </tr>
  	   <tr>
  	     <td>学校电话：</td>
  	     <td><%= h @school.school_telephone %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>学校联系人：</td>
  	     <td><%= h @school.contact %></td>
  	   </tr>
  	   <tr>
  	     <td>联系人电话：</td>
  	     <td><%= h @school.contact_telephone %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>联系人邮件：</td>
  	     <td><%= h @school.contact_email %></td>
  	   </tr>
  	   <tr>
  	     <td>行政教师：</td>
  	     <td><%= h @school.admin_amount %> 人</td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>授课教师：</td>
  	     <td><%= h @school.teacher_amount %> 人</td>
  	   </tr>
  	   <tr>
  	     <td>学制：</td>
  	     <td><%= h @school.level_amount %> 年</td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>班级数量：</td>
  	     <td><%= h @school.class_amount %></td>
  	   </tr>
  	   <tr>
  	     <td>在校学生：</td>
  	     <td><%= h @school.student_amount %> 人</td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>现有图书：</td>
  	     <td><%= h @school.book_amount %> 册，<%= "没" unless @school.has_library %>有图书室</td>
  	   </tr>
  	   <tr>
  	     <td>电脑数量：</td>
  	     <td><% if @school.has_pc -%>没有电脑<% else -%><%= h @school.pc_amount %> 台<% end -%>，<%= "不" unless @has_internet %>能上网</td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>乡村主要收入来源：</td>
  	     <td><%= h @school.income_from %></td>
  	   </tr>
  	   <tr>
  	     <td>当地年人均收入：</td>
  	     <td><%= h @school.average_income %> 元</td>
  	   </tr>
  	   <% if @school.has_ngo -%>
  	   <tr class="list-line-odd">
  	     <td>项目名称：</td>
  	     <td><%= h @school.prj_title %></td>
  	   </tr>
  	   <tr>
  	     <td>开始时间：</td>
  	     <td><%= h @school.start_at %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>联系人：</td>
  	     <td><%= h @school.prj_contact %></td>
  	   </tr>
  	   <tr>
  	     <td>联系方式：</td>
  	     <td><%= h @school.prj_contact_method %></td>
  	   </tr>
  	   <% else -%>
  	   <tr class="list-line-odd">
  	     <td colspan="2">没有公益组织或民间人士跟进</td>
  	   </tr>
  	   <% end -%>
  	 </table>
  	</div>
  	<div id="traffic-form" class="form-tb" style="display:none">
  	 <table border="0" cellspacing="5" cellpadding="5" align="center" class="list-tb">
  	   <tr class="list-line-odd">
  	     <td width="100">附近景点：</td>
  	     <td width="250"><%= h @school.near_place %></td>
  	   </tr>
  	   <tr>
  	     <td>交通方式：</td>
  	     <td><%= h @school.traffic_type %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>路程时间：</td>
  	     <td><%= h @school.traffic_duration %> 小时</td>
  	   </tr>
  	   <tr>
  	     <td>路线攻略：</td>
  	     <td><%= white_list @school.traffic_description %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>交通费用：</td>
  	     <td><%= h @school.traffic_charge %></td>
  	   </tr>
  	 </table>
  	</div>
  	<div id="require-form" class="form-tb" style="display:none">
  	 <table border="0" cellspacing="5" cellpadding="5" class="list-tb">
  	   <tr class="list-line-odd">
  	     <td width="100">书籍类：</td>
  	     <td width="250"><%= h @school.books_need %></td>
  	   </tr>
  	   <tr>
  	     <td>文具类：</td>
  	     <td><%= h @school.stationaries_need %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>文体类：</td>
  	     <td><%= h @school.sports_need %></td>
  	   </tr>
  	   <tr>
  	     <td>衣服类：</td>
  	     <td><%= h @school.clothes_need %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>教具类：</td>
  	     <td><%= h @school.accessories_need %></td>
  	   </tr>
  	   <tr>
  	     <td>其他：</td>
  	     <td><%= h @school.others_need %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>学校活动需求：</td>
  	     <td><%= h @school.classes_need %></td>
  	   </tr>
  	 </table>
  	</div>
  	<div id="finder-form" class="form-tb" style="display:none">
  	 <table border="0" cellspacing="5" cellpadding="5" class="list-tb">
  	   <tr class="list-line-odd">
  	     <td width="100">志愿者姓名：</td>
  	     <td width="250"><%= h @school.finder %></td>
  	   </tr>
  	   <tr>
  	     <td>Email：</td>
  	     <td><%= h @school.finder_email %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>QQ：</td>
  	     <td><%= h @school.finder_qq %></td>
  	   </tr>
  	   <tr>
  	     <td>MSN：</td>
  	     <td><%= h @school.finder_msn %></td>
  	   </tr>
  	   <tr class="list-line-odd">
  	     <td>调查时间：</td>
  	     <td><%= h @school.find_at %></td>
  	   </tr>
  	   <tr>
  	     <td>活动建议：</td>
  	     <td><%= white_list @school.finder_advise %></td>
  	   </tr>
  	 </table>
  	</div>
  	<p style="margin-top:20px"><%= link_to "返回学校列表", schools_path %></p>
  </div>
</div>
<script type="text/javascript">
function show_form (id) {
  Element.hide('base-form');
  Element.hide('traffic-form');
  Element.hide('require-form');
  Element.hide('finder-form');
  $('base-li').className = "";
  $('traffic-li').className = "";
  $('require-li').className = "";
  $('finder-li').className = "";
  
  Element.show(id+"-form");
  $(id+'-li').className = "current";
}
</script>